package com.zhuozhou.jdyc.main.settlement.adapter;

import android.content.Context;

import com.bumptech.glide.Glide;
import com.zhuozhou.jdyc.R;
import com.zhuozhou.jdyc.base.BaseRecyclerViewAdapter;
import com.zhuozhou.jdyc.base.BaseViewHolder;
import com.zhuozhou.jdyc.databinding.AdapterVerificationShopBinding;
import com.zhuozhou.jdyc.main.settlement.bean.VerificationBean;

/**
 * Create by CherishTang on 2020/3/27 0027
 * describe:首页菜单adapter
 */
public class VerificationShopAdapter extends BaseRecyclerViewAdapter<VerificationBean.ListBeanX.ListBean, AdapterVerificationShopBinding> {

    public VerificationShopAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.adapter_verification_shop;
    }

    @Override
    public void onBindHolder(BaseViewHolder<AdapterVerificationShopBinding> holder, int pos) {
        holder.getBinding().setShop(mList.get(pos));
        Glide.with(mContext).load(mList.get(pos).getProperty().getSpec_image()).into(holder.getBinding().imageShop);

    }

}
